package com.dgut.shopManage.dao;


import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.dgut.shopManage.entity.Apply;


@Repository
public interface ApplyRepository extends PagingAndSortingRepository<Apply,Long>,JpaSpecificationExecutor<Apply>{
	@Query("from Apply apply where apply.shop.id = ?1")
	public Page<Apply>findByShop(@Param("apply.shop.id")Long shopId,Pageable pageable);
}
